import java.util.Arrays;
public class Test01{
    public static void main(String[] args) {
        Action action = new Action() {
            @Override
            public String[] test(String str){
                String[] strr = str.split("\\|");
                System.out.println("strr:"+Arrays.toString(strr));
                return strr;
            } 
        };
        action.test("a|b|c");
        Action action1 = new Action() {
            @Override
            public String[] test(String str){
                String[] strr1 = str.split("\\-");
                System.out.println("strr1:"+Arrays.toString(strr1));
                return strr1;
            } 
        };
        action1.test("a-b-c");
    }
}
